#ifndef IBOOKLISTITEM_H
#define IBOOKLISTITEM_H

#include <QtGui/QTreeWidgetItem>

namespace Jonathan
{

   enum BookItemType
   {
      Book = 0,
      SubBook,
      Chapter,
      Preface
   };

   class IBookListItem : public QTreeWidgetItem
   {
   public:
      IBookListItem                          (QTreeWidget* parent) : QTreeWidgetItem (parent) {}
      IBookListItem                          (QTreeWidgetItem* parent) : QTreeWidgetItem (parent) {}
      virtual ~IBookListItem                 () {}
      virtual QString GetName                () = 0;
      virtual void LoadChildren              () = 0;
      virtual BookItemType GetBookItemType   () = 0;
   };

}

#endif // IBOOKLISTITEM_H
